#pragma once

class CRegRW
{
public:
	CRegRW(void);
public:
	~CRegRW(void);

	CString GetKeyValue(HKEY hRootKey, LPCWSTR lpSubKey, CString strKeyName);
	void SetKeyValue(HKEY hRootKey, LPCWSTR lpSubKey, CString strKeyName, CString strValue);

private:
	long RegOpenKey(HKEY hParentKey, LPCWSTR lpSubKey, HKEY *hKEY);
	CStringArray m_newkeyList;
};
